import { Request } from "utils-lib-js"
import { basePath } from "@/config/api-config"
export const mixOrigin = (origin: string) => {
    return new Request(origin)
}
// 拦截器
export const request = mixOrigin(basePath).use("request", (params: any) => {
    return params;
}).use("response", (params: any) => {
    return params;
}).use("error", (error: any) => {
    return error;
});